package com.z6school.manage.common.util;

import com.z6school.manage.po.User;
import org.apache.shiro.SecurityUtils;

public class ShiroUtils {

    public static String getUsername() {
        return getUser().getUsername();
    }
    public static User getUser() {
        return (User) SecurityUtils.getSubject().getPrincipal();
    }
}
